<?php

namespace Biz\Mailers\Site\Tags;

use Biz\Mailers\MailerTags;
use Biz\Models\Site\SitePaper;

/**
 * SitePaper.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class SitePaperTags extends MailerTags
{
    /**
     * @var \Biz\Models\Site\SitePaper
     */
    protected $paper;

    /**
     * SiteTags constructor.
     *
     * @param SitePaper $paper
     */
    public function __construct(SitePaper $paper)
    {
        $this->paper = $paper;

        $this->supportTags();
    }

    /**
     * Support Tags.
     */
    public function supportTags(): void
    {
        $this->tags['PaperTitle']      = $this->paper->translate('en')->title;
    }
}
